package com.rockcent.service;

import com.rockcent.common.common.PageResult;
import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.IntegrationChannel;
import com.rockcent.mall.lib.dto.IntegrationChannelDto;

import java.math.BigDecimal;

/**
 * Created by zhangjh on 2016/12/27.
 */
public interface IntegrationChannelSrv {
    /**
     *
     * @param name
     * @param mallId
     * @param no
     * @param page
     * @return
     */
    PageResult<IntegrationChannelDto> findByNameAndMallIdAndIsDelete(String name, Long mallId, Whether no, PageResult page);

    /**
     *
     * @param appKey
     * @return
     */
    IntegrationChannel findByAppKey(String appKey);

    /**
     *
     * @param id
     * @return
     */
    IntegrationChannel findOne(Long id);

    /**
     *
     * @param integrationChannelId
     * @param mallId
     * @return
     */
    Long caculateQuantityByChannelId(Long integrationChannelId, Long mallId);


}
